<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<script>
// for...of
var arr = [10, 20, 22, 37, 47, 13, 17, 19, 29, 39];
// forEach
arr.forEach(function (e, i, self){  // self : 数组本身
    // 获取到数组中的元素
    console.log(e, i, arr === self);
})
</script>
</body>
</html>